<!--
 * @Author: zxc
 * @Date: 2020-09-13 16:15:34
 * @LastEditTime: 2020-09-13 16:29:54
 * @LastEditors: zxc
 * @Description:
-->
<template>
  <div>
    <button @click="getInfo">请求数据</button>
  </div>
</template>

<script>
import { getUserInfo } from '@/api/user'
export default {
  methods: {
    getInfo() {
      getUserInfo({ userId: 21 }).then(res => {
        console.log(res)
      })
    },
  },
};
</script>

<style>
</style>
